<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <style type="text/css">
        table{
            width: 1190px;
            border-collapse:collapse;
        }
        table tr th{
            font-size: 20px;
            border: 1px solid #ccc;
        }
        table tr:nth-of-type(1){
            background: #333;
            color: white;
        }
        table tr{
            text-align: center;
        }
        table tr td{
            border: 1px solid #ccc;
            font-size: 16px;
        }
    </style>
</head>
<body>
<div style="padding:25px; ">
    <table class="layui-table" width="900px">
        <thead>
        <tr style="text-align: center;">
            <td>商品名</td>
            <td>价格</td>
            <td>库存</td>
            <td>状态</td>
        </tr>
        </thead>
        <tbody>
        {volist name="list_" id="goods"}
        <tr style="text-align: center;">
            <td> {$goods.goods_name}</td>
            <td> {$goods.price}</td>
            <td> {$goods.stock}</td>
            <td>
                {if condition="$goods.status == 0"} 未审核
                {elseif condition="$goods.status == 1"} 审核通过
                {elseif condition="$goods.status == 2"} 拒绝
                {elseif condition="$goods.status == 3"} 下架
                {else} 未知
                {/if}
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
</div>
<br/>
</body>
</html>
